import request from '@/utils/request'

// 查询币种名称列表
export function listForeigncurrency(query) {
  return request({
    url: '/foreigncurrency/foreigncurrency/list',
    method: 'get',
    params: query
  })
}

// 查询币种名称详细
export function getForeigncurrency(iId) {
  return request({
    url: '/foreigncurrency/foreigncurrency/' + iId,
    method: 'get'
  })
}

// 新增币种名称
export function addForeigncurrency(data) {
  return request({
    url: '/foreigncurrency/foreigncurrency',
    method: 'post',
    data: data
  })
}

// 修改币种名称
export function updateForeigncurrency(data) {
  return request({
    url: '/foreigncurrency/foreigncurrency',
    method: 'put',
    data: data
  })
}

// 删除币种名称
export function delForeigncurrency(iId) {
  return request({
    url: '/foreigncurrency/foreigncurrency/' + iId,
    method: 'delete'
  })
}
